﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Workflow.IService.Menu;
using Workflow.Model;

namespace Workflow.Service.Menu
{
  public  class UserRoleMenu:IRoleMenu
    {
        public JsonMenus GetJsonMenu()
        {
            IList<MenuModels> menuModelses = new List<MenuModels>();

            menuModelses.Add(new MenuModels("3", "模板2", "http://www.sina.com.cn", "icon-nav"));
            menuModelses.Add(new MenuModels("5", "模板1", "http://www.sina.com.cn", "icon-nav"));
            MenuModels menus = new MenuModels("4", "报表", "#", "icon-sys", menuModelses);

 

            IList<MenuModels> menuModelses3 = new List<MenuModels>();
            menuModelses3.Add(new MenuModels("11", "Inquiry", "http://www.sina.com.cn", "icon-nav"));
            menuModelses3.Add(new MenuModels("12", "My Task", "http://www.sina.com.cn", "icon-nav"));
            menuModelses3.Add(new MenuModels("14", "Reciev Box", "http://www.sina.com.cn", "icon-nav"));
            MenuModels menus3 = new MenuModels("13", "GP(PTP)", "#", "icon-sys", menuModelses3);

            IList<MenuModels> menuModelses4 = new List<MenuModels>();
            menuModelses4.Add(new MenuModels("15", "Inquiry", "http://www.sina.com.cn", "icon-nav"));
            menuModelses4.Add(new MenuModels("16", "My Task", "http://www.sina.com.cn", "icon-nav"));
            menuModelses4.Add(new MenuModels("17", "Reciev Box", "http://www.sina.com.cn", "icon-nav"));
            MenuModels menus4 = new MenuModels("18", "GP(EEM)", "#", "icon-sys", menuModelses4);

            IList<MenuModels> menuModelses5 = new List<MenuModels>();
            menuModelses5.Add(new MenuModels("19", "Inquiry", "http://www.sina.com.cn", "icon-nav"));
            menuModelses5.Add(new MenuModels("20", "Filing", "http://www.sina.com.cn", "icon-nav"));
            MenuModels menus5 = new MenuModels("21", "MSD(PTP)", "#", "icon-sys", menuModelses5);



            MenuModels menus6 = new MenuModels("22", "MSD(EEM)", "#", "icon-sys", new List<MenuModels>
                                                                                      {
                                                                                          new MenuModels("33", "Inquiry",
                                                                                                         "http://www.sina.com.cn",
                                                                                                         "icon-nav"),
                                                                                          new MenuModels("34", "Filing",
                                                                                                         "http://www.sina.com.cn",
                                                                                                         "icon-nav")
                                                                                      });
            List<MenuModels> MMenus = new List<MenuModels> { menus3, menus4, menus5, menus6, menus };
            JsonMenus jsonMenus = new JsonMenus(MMenus);
            return jsonMenus;
        }
    }
}
